home *** CD-ROM | disk | FTP | other *** search
Text File | 1990-10-25 | 520 b | 23 lines | [TEXT/MPS ] |
- # BuildCommands - show the commands to build the specified program
-
- Set Exit 1
-
- # Find the program parameter.
-
- Unset program
- For i In {"Parameters"}
- If "{i}" !~ /-≈/
- Set program "{i}"
- Break
- End
- End
- If "{program}" == ""
- Echo "### {0} - Specify a program to build." > Dev:StdErr
- Echo "# Usage - {0} program [options…]" > Dev:StdErr
- Exit 1
- End
- IF ((`EXISTS "{program}.make"` != '') | (`EXISTS "makefile"` != ''))
- execute "{MPW}Scripts:BuildCommands" {"Parameters"}
- ELSE
- MABuild {Parameters} -statusonly
- END